package com.ws.admin.post.controller;


import org.springframework.web.bind.annotation.RequestMapping;
import com.ws.admin.post.entity.PostReply;
import org.springframework.web.bind.annotation.RestController;
import com.ws.common.result.entity.ResultEntity;
import org.springframework.beans.factory.annotation.Autowired;
import com.ws.admin.post.service.IPostReplyService;
import com.ws.common.base.BaseController;

/**
 * <p>
 * 论坛-帖子回复 前端控制器
 * </p>
 *
 * @author weifucheng
 * @since 2019-11-26
 */
@RestController
@RequestMapping("/post/reply")
public class PostReplyController extends BaseController<PostReply> {

    @Autowired
    private IPostReplyService postReplyService;

    @RequestMapping("/list")
    public ResultEntity list(PostReply postReply, Integer current, Integer size){
        return ResultEntity.succes(postReplyService.list(postReply, current, size));
    }
}
